Paul O'Leary

Comp 4433

Assignment 4 - Choropleths with the SturmData

This data set, from "Married Women's Economic Rights Reform, 1835-1920" details the years in which various state laws were passed to extend or grant women certain rights in a marriage prior to the Nineteenth Ammendment.

NOTE: Initially, the code to save the notebook as an HTML file was not displaying the graphs - blank areas appeared instead. I added code to save individual graphs. Now, it appears the HTML is saving properly. I will leave the individual writes in place.

IF the HTML file does not display the graphs, please let me know. Or the notebook can be run as wel, which will create a bunch of individual graphs. Thanks.

Nulls or NaNs exist in years-passed columns.

Plotly Express allows for choropleths to be displayed quite easily, but without much flexibility.

This choropleth clearly demonstrates the power of such a graph to display data concisely. However, the color scheme selected does not immediately make clear that Louisiana HAD NOT passed such a law prior to the Nineteenth Ammendment - the color is too close to states with actual data.

Here is the same choropleth with a different color scheme:

In this case, the gray for no data clearly shows that no such law existed prior to the Nineteenth Ammendment.

This choropleth shows the year a state law was passed to grant married women control and management rights over their separate property.

Again, Alabama not having passed such a law is obvious.

Let's try other color schemes.

Available color schemes: ['aggrnyl', 'agsunset', 'algae', 'amp', 'armyrose', 'balance', 'blackbody', 'bluered', 'blues', 'blugrn', 'bluyl', 'brbg', 'brwnyl', 'bugn', 'bupu', 'burg', 'burgyl', 'cividis', 'curl', 'darkmint', 'deep', 'delta', 'dense', 'earth', 'edge', 'electric', 'emrld', 'fall', 'geyser', 'gnbu', 'gray', 'greens', 'greys', 'haline', 'hot', 'hsv', 'ice', 'icefire', 'inferno', 'jet', 'magenta', 'magma', 'matter', 'mint', 'mrybm', 'mygbm', 'oranges', 'orrd', 'oryel', 'oxy', 'peach', 'phase', 'picnic', 'pinkyl', 'piyg', 'plasma', 'plotly3', 'portland', 'prgn', 'pubu', 'pubugn', 'puor', 'purd', 'purp', 'purples', 'purpor', 'rainbow', 'rdbu', 'rdgy', 'rdpu', 'rdylbu', 'rdylgn', 'redor', 'reds', 'solar', 'spectral', 'speed', 'sunset', 'sunsetdark', 'teal', 'tealgrn', 'tealrose', 'tempo', 'temps', 'thermal', 'tropic', 'turbid', 'turbo', 'twilight', 'viridis', 'ylgn', 'ylgnbu', 'ylorbr', 'ylorrd'].

This choropleth shows year of passage of state law granting married women ownership of their wages or earnings on par with other separate property.

In this case, four states: New Mexico, Oklahoma, North Dakota and South Dakota had not passed a law explicitly granting women rights over their separate earnings and wages.

For HTML Docs and other presentation methods that allow for color, this method of presentation is sufficient to convey the intended information. However, work is often presented in grayscale in printed publications. Plotly Express does provide grayscale color schemes:

or:

These greyscale options still do a fair job of conveying the idea that some states never did pass such laws.

A somewhat Kludgy way to emphasize that a law was not passed by a particular state would be to state that in the Hover data on the interactive map. This would assist on interactive versions of the maps to drive home that the state did not do anything prior to being forced by the Nineteenth Ammendment.

Here's one way to do it - for this example, I will focus on the "wills" column:

First, let's convert the floats to integers for the year.

And now in grayscale.

One more time for another example, this time with the "earnings" column.

And in grayscale.

Write out this notebook as an html file.


Not properly converting the graphs to interactive images within the bigger HTML Doc.

As a stop gap, I will right out each individual graph, which seems to work.


FAILED ATTEMPT BELOW